mergBLEAddCharacteristicToService
Type
command
Summary
Add a characteristic to a previously created service
Syntax
mergBLEAddCharacteristicToService <pUUID>, <pCharacteristic>, <pRead>, <pWriteWithoutResponse>, <pWrite>, <pNotify>, <pIndicate>, <pAuthenticatedSignedWrites>, <pNotifyEncryptionRequired>, <pIndicateEncryptionRequired>, [<pValue>]
Description
Add a characteristic to a previously created service
Parameters
Name | Type | Description |
---|---|---|
pUUID | A service UUID being advertised by the device | |
pCharacteristic | A characteristic UUID. | |
pRead | The characteristicâs value can be read. | |
pWriteWithoutResponse | The characteristicâs value can be written, without a response from the peripheral to indicate that the write was successful. | |
pWrite | The characteristicâs value can be written, with a response from the peripheral to indicate that the write was successful. | |
pNotify | Notifications of the characteristicâs value are permitted, without a response from the central to indicate that the notification was received. | |
pIndicate | Indications of the characteristicâs value are permitted, with a response from the central to indicate that the indication was received. | |
pAuthenticatedSignedWrites | Signed writes of the characteristicâs value are permitted, without a response from the peripheral to indicate that the write was successful. | |
pNotifyEncryptionRequired | Only trusted devices can enable notifications of the characteristicâs value. | |
pIndicateEncryptionRequired | Only trusted devices can enable indications of the characteristicâs value. | |
pValue | (optional with The default) The value of the characteristic. Only set for readable characteristics. |
Compatibility and Support
Introduced
LiveCode 8.0
OS
ios
mac
Platforms
desktop
mobile